|
Twig is a template engine for the PHP programming language. Its syntax originates from Jinja and Django templates.〔(Twig documentation for template designers )〕 It's an open source product〔(Twig repository on GitHub )〕 licensed under a BSD License and maintained by Fabien Potencier. The initial version was created by Armin Ronacher. Symfony2 PHP framework comes with a bundled support for Twig as its default template engine.〔(Symfony2 Documentation )〕 == Example == The example below demonstrates some basic features of Twig. Twig defines three kinds of delimiters: * , which is used to execute statements, such as for-loops. * * , which is used to add comments in the templates. These comments aren't included in the rendered page. 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Twig (template engine)」の詳細全文を読む スポンサード リンク
|